package org.shiwen.week3;

import java.util.Scanner;

public class EnumExample {
    public static void main(String[] args) {
        DayOfWeek day = DayOfWeek.SUNDAY;
        if(day==DayOfWeek.SUNDAY){
            System.out.println("It's Sunday");
            System.out.println(day);
        }
        Scanner sc = new Scanner(System.in);
        day = DayOfWeek.valueOf(sc.next());
        System.out.println(day);
    }
}
